package com.qingcheng.dao;

import com.qingcheng.pojo.comment.Comment;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CommentMapper extends Mapper<Comment> {


    /**
     * 根据用户名查找评论列表
     * @param username
     * @return
     */
    @Select("SELECT * FROM  `tb_comment` WHERE username=#{username}")
    public List<Comment> findListByUsername(@Param("username") String username);
}
